package com.asktgapp.model;

import com.asktgapp.base.BaseItem;

import java.util.ArrayList;
import java.util.List;

public class FreeAskSearchVO extends BaseItem {


    /**
     * id : 5421
     * content : 测试提问测试提问测试提问
     * userId : null
     * status : null
     * isAnswer : null
     * addTime : 2018.07.26 23:04:19
     * modifyTime : null
     * arraylist : []
     * answerList : [{"id":null,"problemId":5421,"content":"测试数据","auserId":null,"addTime":"2018.07.28 11:45:50","likeNumber":0,"viewNumber":0,"status":null,"anstoUserId":null,"likeId":null,"userPic1":"http://140.143.129.120:8080/jiangong/downloadFile.do?id=5e8f9d86-a250-4da0-8496-6799d74ed501","userPic2":null,"username1":"666","username2":null,"discussList":null},{"id":null,"problemId":5421,"content":"测试数据","auserId":null,"addTime":"2018.07.28 11:51:28","likeNumber":0,"viewNumber":0,"status":null,"anstoUserId":null,"likeId":null,"userPic1":"http://140.143.129.120:8080/jiangong/downloadFile.do?id=5e8f9d86-a250-4da0-8496-6799d74ed501","userPic2":null,"username1":"666","username2":null,"discussList":null},{"id":null,"problemId":5421,"content":"测试回答问题","auserId":null,"addTime":"2018.07.28 17:13:13","likeNumber":0,"viewNumber":0,"status":null,"anstoUserId":null,"likeId":null,"userPic1":"http://140.143.129.120:8080/jiangong/downloadFile.do?id=5e8f9d86-a250-4da0-8496-6799d74ed501","userPic2":null,"username1":"666","username2":null,"discussList":null}]
     * likeId : 2118
     * problemLikeNum : 2
     * isEngineer : 1
     * userPic : http://140.143.129.120:8080/jiangong/downloadFile.do?id=3f984bdc-6e9a-4b9c-b0b2-ef63b6b1f8e0
     * username : 剪工用户
     * testId : 21365
     * imgList : ["http://140.143.129.120:8080/jiangong/downloadFile.do?id=03040881-9862-43a2-b26b-e632c1076628","http://140.143.129.120:8080/jiangong/downloadFile.do?id=03040881-9862-43a2-b26b-e632c1076628"]
     * problemPicOne : 03040881-9862-43a2-b26b-e632c1076628,ff9a03c2-fde9-41a3-8fef-956227d5fc7a
     */


    private String content;
    private String userId;
    private String status;
    private String isAnswer;
    private String addTime;
    private String modifyTime;
    private String likeId;
    private String problemLikeNum;
    private String isEngineer;
    private String userPic;
    private String username;
    private String testId;
    private String problemPicOne;
    private List<AnswerListBean> answerList;
    private List<String> imgList;
    private String isHot;
    private boolean isHead;

    private String answerNum;

    public String getAnswerNum() {
        return answerNum == null ? "无" : answerNum;
    }

    public void setAnswerNum(String answerNum) {
        this.answerNum = answerNum;
    }

    public boolean isHead() {
        return isHead;
    }

    public void setHead(boolean head) {
        isHead = head;
    }

    public String getContent() {
        return content == null ? "" : content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserId() {
        return userId == null ? "" : userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getStatus() {
        return status == null ? "" : status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIsAnswer() {
        return isAnswer == null ? "" : isAnswer;
    }

    public void setIsAnswer(String isAnswer) {
        this.isAnswer = isAnswer;
    }

    public String getAddTime() {
        return addTime == null ? "" : addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getModifyTime() {
        return modifyTime == null ? "" : modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getLikeId() {
        return likeId == null ? "" : likeId;
    }

    public void setLikeId(String likeId) {
        this.likeId = likeId;
    }

    public String getProblemLikeNum() {
        return problemLikeNum == null ? "0" : problemLikeNum;
    }

    public void setProblemLikeNum(String problemLikeNum) {
        this.problemLikeNum = problemLikeNum;
    }

    public String getIsEngineer() {
        return isEngineer == null ? "" : isEngineer;
    }

    public void setIsEngineer(String isEngineer) {
        this.isEngineer = isEngineer;
    }

    public String getUserPic() {
        return userPic == null ? "" : userPic;
    }

    public void setUserPic(String userPic) {
        this.userPic = userPic;
    }

    public String getUsername() {
        return username == null ? "" : username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTestId() {
        return testId == null ? "" : testId;
    }

    public void setTestId(String testId) {
        this.testId = testId;
    }

    public String getProblemPicOne() {
        return problemPicOne == null ? "" : problemPicOne;
    }

    public void setProblemPicOne(String problemPicOne) {
        this.problemPicOne = problemPicOne;
    }

    public List<AnswerListBean> getAnswerList() {
        if (answerList == null) {
            return new ArrayList<>();
        }
        return answerList;
    }

    public void setAnswerList(List<AnswerListBean> answerList) {
        this.answerList = answerList;
    }

    public List<String> getImgList() {
        if (imgList == null) {
            return new ArrayList<>();
        }
        return imgList;
    }

    public void setImgList(List<String> imgList) {
        this.imgList = imgList;
    }

    public String getIsHot() {
        return isHot == null ? "" : isHot;
    }

    public void setIsHot(String isHot) {
        this.isHot = isHot;
    }

    public static class AnswerListBean extends BaseItem {
        /**
         * id : null
         * problemId : 5421
         * content : 测试数据
         * auserId : null
         * addTime : 2018.07.28 11:45:50
         * likeNumber : 0
         * viewNumber : 0
         * status : null
         * anstoUserId : null
         * likeId : null
         * userPic1 : http://140.143.129.120:8080/jiangong/downloadFile.do?id=5e8f9d86-a250-4da0-8496-6799d74ed501
         * userPic2 : null
         * username1 : 666
         * username2 : null
         * discussList : null
         */

        private String problemId;
        private String content;
        private String auserId;
        private String addTime;
        private String likeNumber;
        private String viewNumber;
        private String status;
        private String anstoUserId;
        private String likeId;
        private String userPic1;
        private String userPic2;
        private String username1;
        private String username2;
        private String isProjector;
        private List<DiscussBean> discussList;
        private String rewardTimes;//打赏次数

        public String getRewardTimes() {
            return rewardTimes == null ? "0" : rewardTimes;
        }

        public void setRewardTimes(String rewardTimes) {
            this.rewardTimes = rewardTimes;
        }

        public String getProblemId() {
            return problemId == null ? "" : problemId;
        }

        public void setProblemId(String problemId) {
            this.problemId = problemId;
        }

        public String getContent() {
            return content == null ? "" : content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getAuserId() {
            return auserId == null ? "" : auserId;
        }

        public void setAuserId(String auserId) {
            this.auserId = auserId;
        }

        public String getAddTime() {
            return addTime == null ? "" : addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public String getLikeNumber() {
            return likeNumber == null ? "" : likeNumber;
        }

        public void setLikeNumber(String likeNumber) {
            this.likeNumber = likeNumber;
        }

        public String getViewNumber() {
            return viewNumber == null ? "" : viewNumber;
        }

        public void setViewNumber(String viewNumber) {
            this.viewNumber = viewNumber;
        }

        public String getStatus() {
            return status == null ? "" : status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getAnstoUserId() {
            return anstoUserId == null ? "" : anstoUserId;
        }

        public void setAnstoUserId(String anstoUserId) {
            this.anstoUserId = anstoUserId;
        }

        public String getLikeId() {
            return likeId == null ? "" : likeId;
        }

        public void setLikeId(String likeId) {
            this.likeId = likeId;
        }

        public String getUserPic1() {
            return userPic1 == null ? "" : userPic1;
        }

        public void setUserPic1(String userPic1) {
            this.userPic1 = userPic1;
        }

        public String getUserPic2() {
            return userPic2 == null ? "" : userPic2;
        }

        public void setUserPic2(String userPic2) {
            this.userPic2 = userPic2;
        }

        public String getUsername1() {
            return username1 == null ? "" : username1;
        }

        public void setUsername1(String username1) {
            this.username1 = username1;
        }

        public String getUsername2() {
            return username2 == null ? "" : username2;
        }

        public void setUsername2(String username2) {
            this.username2 = username2;
        }

        public String getIsProjector() {
            return isProjector == null ? "" : isProjector;
        }

        public void setIsProjector(String isProjector) {
            this.isProjector = isProjector;
        }

        public List<DiscussBean> getDiscussList() {
            if (discussList == null) {
                return new ArrayList<>();
            }
            return discussList;
        }

        public void setDiscussList(List<DiscussBean> discussList) {
            this.discussList = discussList;
        }
    }


    public static class DiscussBean extends BaseItem{

        /**
         * discussId : 7
         * discussContent : 评论了
         * discussUserId : null
         * discussToUserId : null
         * discussLikeNum : 0
         * discussAddTime : 2018.07.29 14:38:39
         * discussUpdateTime : null
         * discussStatus : null
         * discussTargetId : 5135
         * username1 : 剪工用户
         * username2 : 剪工用户
         * userPic1 : http://140.143.129.120:8080/jiangong/downloadFile.do?id=3f984bdc-6e9a-4b9c-b0b2-ef63b6b1f8e0
         * userPic2 : http://140.143.129.120:8080/jiangong/downloadFile.do?id=3f984bdc-6e9a-4b9c-b0b2-ef63b6b1f8e0
         * likeId : null
         */

        private String discussId;
        private String discussContent;
        private String discussUserId;
        private String discussToUserId;
        private String discussLikeNum;
        private String discussAddTime;
        private String discussUpdateTime;
        private String discussStatus;
        private String discussTargetId;
        private String username1;
        private String username2;
        private String userPic1;
        private String userPic2;
        private String likeId;

        public String getDiscussId() {
            return discussId== null ? "" : discussId;
        }

        public void setDiscussId(String discussId) {
            this.discussId = discussId;
        }

        public String getDiscussContent() {
            return discussContent == null ? "" : discussContent;
        }

        public void setDiscussContent(String discussContent) {
            this.discussContent = discussContent;
        }

        public String getDiscussUserId() {
            return discussUserId == null ? "" : discussUserId;
        }

        public void setDiscussUserId(String discussUserId) {
            this.discussUserId = discussUserId;
        }

        public String getDiscussToUserId() {
            return discussToUserId == null ? "" : discussToUserId;
        }

        public void setDiscussToUserId(String discussToUserId) {
            this.discussToUserId = discussToUserId;
        }

        public String getDiscussLikeNum() {
            return discussLikeNum == null ? "" : discussLikeNum;
        }

        public void setDiscussLikeNum(String discussLikeNum) {
            this.discussLikeNum = discussLikeNum;
        }

        public String getDiscussAddTime() {
            return discussAddTime == null ? "" : discussAddTime;
        }

        public void setDiscussAddTime(String discussAddTime) {
            this.discussAddTime = discussAddTime;
        }

        public String getDiscussUpdateTime() {
            return discussUpdateTime == null ? "" : discussUpdateTime;
        }

        public void setDiscussUpdateTime(String discussUpdateTime) {
            this.discussUpdateTime = discussUpdateTime;
        }

        public String getDiscussStatus() {
            return discussStatus == null ? "" : discussStatus;
        }

        public void setDiscussStatus(String discussStatus) {
            this.discussStatus = discussStatus;
        }

        public String getDiscussTargetId() {
            return discussTargetId == null ? "" : discussTargetId;
        }

        public void setDiscussTargetId(String discussTargetId) {
            this.discussTargetId = discussTargetId;
        }

        public String getUsername1() {
            return username1 == null ? "" : username1;
        }

        public void setUsername1(String username1) {
            this.username1 = username1;
        }

        public String getUsername2() {
            return username2 == null ? "" : username2;
        }

        public void setUsername2(String username2) {
            this.username2 = username2;
        }

        public String getUserPic1() {
            return userPic1 == null ? "" : userPic1;
        }

        public void setUserPic1(String userPic1) {
            this.userPic1 = userPic1;
        }

        public String getUserPic2() {
            return userPic2 == null ? "" : userPic2;
        }

        public void setUserPic2(String userPic2) {
            this.userPic2 = userPic2;
        }

        public String getLikeId() {
            return likeId == null ? "" : likeId;
        }

        public void setLikeId(String likeId) {
            this.likeId = likeId;
        }
    }

}
